#ifndef NEWSPAPER_H
#define NEWSPAPER_H

#include <QObject>
class Newspaper : public QObject {
    Q_OBJECT
public:
    Newspaper(const QString& name)
        : m_name(name)
    {
    }
    void publish()
    {
        emit pblsNewspaper(m_name);
    }
    void publish(const QString n_name)
    {
        emit pblsNewspaper(n_name);
    }

signals:
    void pblsNewspaper(const QString& name);

private:
    QString m_name;
};

#endif // NEWSPAPER_H
